window._hyperbolaa = {
    getYmd(){
        let date = new Date();
        let Y = date.getFullYear();
        let m = date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1;
        let d = date.getDate() < 10 ? '0'+date.getDate() : date.getDate();
        let ymd = [Y,m,d].join('');
        console.log('Ymd',ymd);
        return ymd;
    },
    setDebugCookie(){
        let ymd  = this.getYmd();
		let date = md5('date_' + ymd);
        let cks = [
            {name:'_hello',value:'6'},
            {name:'_date',value:date},
        ];
        if(cks && cks.length > 0){
            cks.forEach((ck) => {
                if(ck.name !== '' && ck.value !== ''){
                    Cookies.set(ck.name,ck.value)
                }
            });
        }
    }
}

_hyperbolaa.setDebugCookie();

console.log('Inject cookie success by hyperbolaa cookie extension.');

